#include "caretaker.hh"

void CareTaker::add(Memento* state){
  mementoList.push_back(state);
}

Memento* CareTaker::get(int index){
  std::list<Memento*>::iterator it = mementoList.begin();
  advance(it, index);
  return *it;
}
